//
//  HotDoorTCell.m
//  Qyer
//
//  Created by dllo on 15/10/22.
//  Copyright (c) 2015年 GF. All rights reserved.
//

#import "HotDoorTCell.h"

@implementation HotDoorTCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //self.dataArr = [[NSMutableArray alloc] init];
        self.backgroundColor = DAY_BACKGROUND;
        self.flowLayout = [[UICollectionViewFlowLayout alloc] init];
        self.flowLayout.minimumInteritemSpacing = 20;
        self.flowLayout.minimumLineSpacing = 20;
        _flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
        
        self.collectionView = [[UICollectionView alloc] initWithFrame:CRM(0, 0, 375 * WIDTH, 300 * HEIGHT) collectionViewLayout:self.flowLayout];
       self.collectionView.backgroundColor = [UIColor clearColor];
        //self.collectionView.dataSource = self;
        [self.collectionView registerClass:[HostDoorCCell class] forCellWithReuseIdentifier:@"collection"];
        [self.contentView addSubview:self.collectionView];
        
    }
    return self;
}
- (void)getItemSize:(NSArray *)str {
    
}
- (void)setDataSource:(id<UICollectionViewDataSource>)dataSource {
    [_collectionView setDataSource:dataSource];
}
- (void)setDelegate:(id<UICollectionViewDelegate>)delegate {
    [_collectionView setDelegate:delegate];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
